﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace AnesSystem.Controls
{
    /// <summary>
    /// 下拉框的数组内容为无和有
    /// </summary>
    public partial class CustomComXunHuanXiTongCtrl : BaseDropDownCtrl
    {
        public CustomComXunHuanXiTongCtrl()
        {
            InitializeComponent();
            InitialXunHuanXiTong();
            TextAlignment = TextAlignment.Left;
        }
        public TextAlignment TextAlignment
        {
            get { return _xunhuanCmp._txtName._txt.TextAlignment; }
            set { _xunhuanCmp._txtName._txt.TextAlignment = value; }
        }
        private void InitialXunHuanXiTong()
        {
            List<CommonComboboxItemModel> list = new List<CommonComboboxItemModel>()
            {
                new CommonComboboxItemModel() { Behind="",Display="" },
                new CommonComboboxItemModel() { Behind="-1",Display= "无特殊" },
                 new CommonComboboxItemModel() { Behind="心影增大",Display="心影增大" },
                  new CommonComboboxItemModel() { Behind="心律不齐",Display="心律不齐" },
                   new CommonComboboxItemModel() { Behind="心脏杂音",Display="心脏杂音" },
                    new CommonComboboxItemModel() { Behind="双下肺湿啰音",Display="双下肺湿啰音" },
                     new CommonComboboxItemModel() { Behind="双下肢水肿",Display="双下肢水肿" },
                      new CommonComboboxItemModel() { Behind="颈静脉怒张",Display="颈静脉怒张" },

            };
             this._xunhuanCmp.ItemsSource = list;

        }

    }
}
